import java.util.concurrent.Callable;

class Computer{
    public String cpu;
    private String gpu;
    String disk;//default

    public void setGpu(String type) {
        this.gpu = type;//只能在类里面修饰
    }

    public void show() {
        System.out.println(cpu);
        System.out.println(gpu);
        System.out.println(disk);
    }

    public void show_s() {
        secret();
    }
    private void secret() {
        System.out.println("nijiuzhineng kandaowoxiangeinikande");
    }
}
public class quanxianzhifu {
    public static void main(String[] args) {
        Computer hp = new Computer();
        //public可以直接更改值
        hp.cpu = "Gen Intel Core i9-13900HX";
        //private只能用自己写的成员方法来更改值
        hp.setGpu("NVIDIA GeForce RTX 4060");
        //default
        hp.disk = "hh";
        hp.show();
        hp.show_s();
    }
}
